package com.quanfaqiang.demo1.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.quanfaqiang.demo1.pojo.Furniture;

import java.util.List;

public interface FurnitureService {
    Page<Furniture> SelectAll(int currentPage, int pageSize);

    void DeleteId(Integer id);

    void deleteIds(List<Integer> ids);

    Furniture SelectId(Integer id);

    void Add(Furniture furniture);

    void update(Furniture furniture);

    void updateAvatar(String avatarUrl, Integer id);

    Page<Furniture> serchFurniture(Integer number, String furnitureName, String furniturePhoto,Integer currentPage, Integer pageSize,Integer furnitureTypesId,Integer quyuTypesId);

    Boolean selectFurnitureName(String furnitureName, Integer id);

    Furniture selectNumber(Integer number);
}
